// stores/sidebarStore.js
import { defineStore } from 'pinia'

export const useSidebarStore = defineStore('sidebar', {
  state: () => ({
    isCollapsed: false, // 左边栏的展开状态
  }),
  actions: {
    toggleSidebar() {
      this.isCollapsed = !this.isCollapsed
    },
  },
})
